<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <input id="input" type="tetx">
    <button  onclick="addClick()">确定</button>
</body>
<script src="md5.js"></script>
<script src="b64.js"></script>
<script src="http://www.jq22.com/jquery/jquery-2.1.1.js"></script>
<script>
    function addClick(params) {
        console.log($("#input").val()+"zBWHp")
        var md5 = hex_md5($("#input").val()+"zBWHp")
        // var strLength = $("#input").val()+"zBWHp";
        // var md5 = core_md5(str2binl(strLength),strLength.length * 8)
        console.log(md5)
        var b = new Base64();
        var B64 = b.encode(md5);
        console.log(B64)
    }
</script>
</html>